import 'package:get/get.dart';
import 'package:get/get_connect/http/src/request/request.dart';
import 'package:psi/http/service_api.dart';

import 'http.dart';


class ApiService extends GetxService {
  late Http _http;

  ApiService init() {
    _http = Http();
    return this;
  }

  Http get http => _http;

  RestClient get serviceApi => _http.serviceApi;

  static RestClient get request => Get.find<ApiService>().serviceApi;
}
